//
//  MYGCommunityListModel.swift
//  MYGrow
//
//  Created by 林矗 on 2024/3/16.
//

import UIKit
import HandyJSON


class MYGCommunityModel : HandyJSON {
    var success = ""
    var data:[MYGCommunityListModel] = []
    var msg = ""
    var status = ""

    required init() {
    }
}


class MYGCommunityListModel: HandyJSON {
    var answer = ""
    var communities_patient = MYGCommunityPatient()
    var community_patient_id = 0
    var created_at = ""
    var deleted_at = ""
    var doctor = MYGDoctorDetailModel()
    var doctor_id = 0
    var id = 0
    var is_like = 0
    var like_count = 0
    var updated_at = ""
    var type: MYGCommunityType = .question
    required init() {}
}

class MYGCommunityPatient:HandyJSON {
    var id = 0
    var communities_id = 0
    var question_content = ""
    var title = ""
    var likes = 0
    var is_like = 0
    required init() {}
}

class MYGCommunityCollectModel: HandyJSON {
    var created_at = ""
    var data_id = 0
    var deleted_at = ""
    var communities = MYGCommunityListModel()
    var doctor_id = 0
    var id = 0
    var patient_id = 0
    var type = 0
    var updated_at = ""
    var user_id = 0
    
    required init() {
    }
}

class MYGCommunityAllTypeModel : HandyJSON {
    var success = ""
    var data:[MYGCommunityTypeModel] = []
    var msg = ""
    var status = ""

    required init() {
    }
}

class MYGCommunityTypeModel:HandyJSON {
    var id = 0
    var communities_id = 0
    var created_at = ""
    var deleted_at  = ""
    var doctor_id = 0
    var name = ""
    var patient_id = 0
    var updated_at = ""
    
    required init() {}
}

